package com.sayimo.maker.user.dao.impl;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.user.dao.CustomerShareInterfaceDao;
import com.sayimo.maker.user.vo.CustomerShare;


/**
 * @Project: sayimoWeixinWeb
 * @ClassName: CustomerShareInterfaceImplDao
 * @Description: 用户分享
 * @Author:	陈培永
 * @Date:	日期：2015年8月21日  时间：下午19:14:14
 * @Version 1.0.0
 */
@Repository(value="customerShareInterfaceImplDao")
public class CustomerShareInterfaceImplDao extends AbstractMybatisBaseDao<CustomerShare> implements CustomerShareInterfaceDao{

	public int insertSelective(CustomerShare customerShare) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert("com.sayimo.maker.user.dao.CustomerShareInterfaceDao.insertSelective", customerShare);
	}

	public int updateByPrimaryKeySelective(CustomerShare customerShare) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert("com.sayimo.maker.user.dao.CustomerShareInterfaceDao.updateByPrimaryKeySelective", customerShare);
	}

	public CustomerShare selectByCond(CustomerShare customerShare) throws DaoException {
		return this.mybatisInterfaceBaseDao.get("com.sayimo.maker.user.dao.CustomerShareInterfaceDao.selectByCond", customerShare);
	}
}
